<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListCompteBanqueTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListCompteBanqueEmpty}" rendered="#{compteBanqueController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{compteBanqueController.items.rowCount > 0}">
                    <h:outputText value="#{compteBanqueController.pagination.pageFirstItem + 1}..#{compteBanqueController.pagination.pageLastItem + 1}/#{compteBanqueController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{compteBanqueController.previous}" value="#{bundle.Previous} #{compteBanqueController.pagination.pageSize}" rendered="#{compteBanqueController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{compteBanqueController.next}" value="#{bundle.Next} #{compteBanqueController.pagination.pageSize}" rendered="#{compteBanqueController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable value="#{compteBanqueController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_id}"/>
                            </f:facet>
                            <h:outputText value="#{item.id}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_banque}"/>
                            </f:facet>
                            <h:outputText value="#{item.banque}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_solde}"/>
                            </f:facet>
                            <h:outputText value="#{item.solde}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_description}"/>
                            </f:facet>
                            <h:outputText value="#{item.description}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_identifiant}"/>
                            </f:facet>
                            <h:outputText value="#{item.identifiant}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_nomCompte}"/>
                            </f:facet>
                            <h:outputText value="#{item.nomCompte}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCompteBanqueTitle_typeCompte}"/>
                            </f:facet>
                            <h:outputText value="#{item.typeCompte}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{compteBanqueController.prepareView}" value="#{bundle.ListCompteBanqueViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{compteBanqueController.prepareEdit}" value="#{bundle.ListCompteBanqueEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{compteBanqueController.destroy}" value="#{bundle.ListCompteBanqueDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{compteBanqueController.prepareCreate}" value="#{bundle.ListCompteBanqueCreateLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ListCompteBanqueIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
